export default {
    data() {
        return {

        }
    },
    methods: {
        systemDialog(row) { //系统详情
            this.CSystemVisible = true;
            this.CSystemTitle = `系统详情—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
            this.currentRow = row;
        },

        ECSystemCancelDialog() {
            this.CSystemVisible = false;
        },

        CSParamConfirmDialog() {},
        CSParamCancelDialog() {
            this.CSParamVisible = false;
        },

        // 参数设置弹框
        CSParamDialog(row) {
            this.CSParamVisible = true;
            this.CSParamTitle = `设备详情—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
            this.currentRow = row;
        },


        portDialog(row) {
            this.portVisible = true;
            this.portTitle = `端口—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
            this.currentRow = row;
        },
        portConfirmDialog() {},
        portCancelDialog() {
            this.portVisible = false;
        },
        // 充电堆 批量设置-- 参数
        CSParamDialog1(row) {

        },
        isEditDialog(row){
            if(this.equipTypeCode == 'CS'){//充电堆
                this.CSParamDialog(row);
            }else{
                this.editDialog(row);
            }
        },
        editDialog(row) {
            this.visible = true;
            this.dialogTitle = `参数详情—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
        },
        binDialog(row) {
            this.binVisible = true;
            this.dialogTitle = `仓控制—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
        },
        isReStart(row) {
            this.currentRow = row;
            this.restartVisible = true;
            this.dialogTitle = `重启—${row.equipTypeName}（${row.code}）`;
        },
        boxDialog(row) {
            this.boxVisible = true;
            this.dialogTitle = `设备详情—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
            this.currentRow = row;
        },
        cameraDialog(row) {
            this.cameraVisible = true;
            this.dialogTitle = `摄像头—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
            this.currentRow = row;
        },

        boxStatusDialog(row) {
            this.boxStatusVisible = true;
            this.dialogTitle = `柜状态查询（评估）—${row.equipTypeName}（${row.code}）`;
            this.equipId = row.id;
            this.currentRow = row;
        },
    }
}
